@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-10 col-md-offset-1">
                <blockquote>
                    <p>资源信息简介</p>
                    <p>姓名:{{$resource->name}};电话:{{$resource->phone}}</p>
                    <p>QQ:{{$resource->qq}};备用电话:{{$resource->phone2}}</p>
                    <p>微信:{{$resource->wechat}};录入人:{{$resource->users_id}}</p>
                </blockquote>
                <div class="panel panel-default">
                    <div class="panel-heading">资源进程展示页
                        <a  href="{{url('resource/remark/create')}}/{{$id}}">添加</a>
                    </div>
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                    <table class="table table-hover">
                        <tr>
                            <td class="success">记录id</td>
                            <td class="success">资源进程</td>
                            <td class="success">操作人</td>
                            <td class="success">备注</td>
                            <td class="success">
                                操作
                            </td>
                        </tr>
                        @foreach($remarks as $remark)
                            <tr>
                                <td class="active">{{$remark->rid}}</td>
                                <td class="active">{{$remark->pname}}</td>
                                <td class="active">{{$remark->name}}</td>
                                <td class="active">{{$remark->des}}</td>
                                <td class="active">
                                    <a href="{{url('resource/remark/edit')}}/{{$remark->rid}}">编辑</a>
                                    <a href="{{url('resource/remark/destroy')}}/{{$remark->rid}}">删除</a>
                                </td>
                            </tr>
                        @endforeach

                        @if(count($remarks)==0)
                            <tr>
                                <td>暂时没有该资源的记录</td>
                            </tr>
                        @endif
                    </table>
                </div>
            </div>
        </div>
    </div>
@endsection